Fixed host parsing to better handle IPv6 hosts
Merge pull request #28 from thanethomson/master

Changed url.py slightly to better handle IPv6 hosts