Imports urlparse for 2.7
Tweaked docstring
Added params back into key_for_request