p3 compatibility + some formatting + removing unused import
more print statements to functions
Merge pull request #21 from mvexel/p3

p3 compatibility + some formatting + removing unused import