python: Move helper functions for using param into a separate file rather