Alja's py script