fixing python error