Code from example:
import bpy
bpy.ops.object.select_all(action='DESELECT')
for ob in bpy.context.scene.objects:
if not ob.hide:
continue
...
Fails on ob.hide
:
AttributeError: 'Object' object has no attribute 'hide'
How to solve this issue? It seems that example was written for 2.79.