Moved my_class import higher so variables can be used in templates

Needed to add a variable to the main.cf template.  This seemed to be the simplest way.