Update gen_exp_pattern_classes.py

More tidying up  - variable name errors