次の文字列があるとします。
"http://earth.google.com/gallery/kmz/women_for_women.kmz?a=large"
上記のような文字列を、すべての文字がURLに準拠するように変更される以下の文字列に変換できる関数またはモジュールはありますか?
"http%3A%2F%2Fearth.google.com%2Fgallery%2Fkmz%2Fwomen_for_women.kmz%3Fa%3Dlarge"
Pythonでこれを行うための最良の方法は何ですか?