Fixed python3 syntax