refactored into python3 module, and pythonic install not a ghetto one