If you want to paraphrase a sentence with Python, check out PEGASUS model. You will be amazed by the output you got! Below is an example of how the model paraphrase my question
Paste any random sentence here and see how the model paraphrases the sentence. Here is the link