Bug fix for py3.0 testing