Support Python 3.x

Right now buildout with python 3.x gives an error when using the beat.