Python 2 and 3 support enhanced

Urllib is now handled almost the same way, only differing in imports.
Print calls simplified for both versions.
Python 2 and 3 support enhanced