Load And Dump Function In Python With Parameters