call Python == for equality testing of PyObjects
silence deprecation warning for conversion of 0-dimensional arrays