fix for py3k, allow override via URL fragment
Merge pull request #1928 from kived/loader-url-fix-py3k

Loader: fix for py3k, allow override via URL fragment