Just pass your parameters into urlencode() like:
>>> import urllib
>>> f = { 'eventName' : 'myEvent', 'eventDescription' : 'cool event'}
>>> urllib.urlencode(f)
'eventName=myEvent&eventDescription=cool+event'
For Python 3 or above
Use:
>>> urllib.parse.urlencode(f)
eventName=myEvent&eventDescription=cool+event
I hope this helps.