python scripting for automation