fixed imports for python 3 and removed debug messages