Re Replace Python Function Parameters