Reveal Hidden Mode in Python Script Node

This might help you out.

https://forum.dynamobim.com/t/switch-to-show-hidden-elements/18110