Modified paper, slightly modified python script