Added python2 check for optistatus