python error 22 invalid argument