Remove PEP8 errors from plpy
isinstance should always be used to check type of variable