Fixed exception on Ubuntu Python 3.4