Remove main in patent.py