removed relative imports and importing urlparse from urllib.parse for py3+