Modify patricia.py as completion