fixes more python3 syntax errors