Fixed crash when iri_to_uri was called with an URI that had a fragment
Python 3 fixes (iter, print...)
Ported shorty example to run in Python 2.7 and 3.3