Fixes to support both Python 2 & 3, print_function and urllib imports
Fix for python 2 to use the safe raw_input() per default