Php Function Within Function Python Parameters