correct collect python script