'Switch wireframe to shade all

After a long search and unsuccessful attempts, I ask you to help me here. I need a python script that in maya will switch wireframe to shaded (key 5:smooth shade all ). Or just enable shaded. Thank you in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source