@classmethod
def for_file(cls, interfaces):
    """
        A class factory for providing a nice way to specify the interfaces file
        that you want to use.  Use this instead of directly overwriting the
        interfaces Class attribute if you care about thread safety.
        """
    return type(cls)(cls.__name__, (cls,), {'interfaces': interfaces})
