Select armature and hide it in python

Hey i want to select my armature in any mode and hide this armature in python.
Thanks for all the help!