added python code and fixed alphabet