added python code for openssl