Issues while building tests under python3.1