first version of python script