Python Create Function Inside Function Python Parameters From Command