some python scripting finally