fixed python syntax problem