fix tests under python3.3