Added gen_pass.py