Use ArcPy to Connect to SDE and Versions

Responsive image
source