Added exception handling for PendingDeprecationWarning when using Python 3