Python Function Modify Input Director Settings