change dictionary and add other feature of python