Python 3 compatibility for cli-program