How To Check Environment In Python