Major refactor

Is not a proper python library for long running use
Command line is converted to use this