use logging instead of prints
use 'from . import' to avoid collisions
fix recursive imports
replace 'raise Exception' with something more meaningfull