We still need ArcSDE command ---sdeversion -o close_state to close the unclosed states in our versioning database sometime. Can anyone tell me what is the alternate ArcPy function or tool for that command in ArcGIS 10.3 or 10.4 or some functions I can put in Python script? Thanks