Corrected some errors + made python script, seems to be correct