Python Create Function Inside A Function Python W3schools