My attempt at Quora's Python URI question. (http://www.quora.com/challenges#python_uri)