Cleanup and support for destination_url parameter

i am all for reformatting the whole thing according to PEP8, but a previous review comment discouraged that