Fixed some issues with Python3 exceptions and print()
Fixed some imports issues