Python Create Function Inside Function Python Parameters