Add Python 3 support

Removed unused imports, including one for urlparse that has been renamed in Python 3
Merge pull request #8 from lyschoening/python3-support

Add Python 3 support