problems with simple python script