Python Function Modify Input Director Tutorial