Python Function Modify Input Director For Windows