Refs #93. Fixed a bug in python 3.3