cli.main() for cli program. try some stuff to get packages working on tests in py 2.6 and 3.3