add match.py
minor chanes with match