remove obsolete import
make getpassword testable

and clean up DummyCallBack classes, they
should also live in the test modules
add testing for random password generating
modify cli.get_password

add lenght=None as argument to comply with testing