Switched cli.logger to the new open_file wrapper to improve Python 2.7 compatibility