updated python code

also added a screenshot of latest working version