python error if not integer