Python Construct Url With Query Parameters