added gen_trigger.py
deleted unnecessary file.