playing with python and some minor changes