I think the python script would always pass in an empty string if the user doesn't provide a password. So the password here shouldn't be null.