updated python script to run non-interactively; changed output to show parameters only once