made pyaleph work with python 3.1