Using [requests](http://docs.python-requests.org/en/latest/) will make your life much easier. And don't build the parameters yourself: [_Passing Parameters In URLs_](http://docs.python-requests.org/en/latest/user/quickstart/#passing-parameters-in-urls)

Don't they have **https**? It looks like plain text username and password to me.