Python user commandline client
Some fixes and improvements