fixed python3 syntax error