First version runs with python 2.7