fixed python three errors