fixed python error