BUG Fix for Python 3