adding python code to set up arguments in scripts