simplified python script