Php Function Within Function Python W3schools