fixed testing error in py3.3