Fix use of join, which doesn't work in Python 1.x