Visibility states: How to get and set this for dynamic block references?

Hi, I found this: How to access and modify a DynamicBlockReference property in ARX and .Net? - AutoCAD DevBlog
Is here anyone who solved this already in Python please?