Consider using requests' support for encoding parameters in a URL -- will make it easier to extend at a later date if necessary and is more canonical in my opinion.