Python Function Modify Input Director Settings Passwords