port to python 3 and add menu & configuration file