fixed python syntax