added python project structure and code for open pattern maching