class A(object):

    def __init__(self, first, second):
        self.first = first
self.second = second

def __str__(self):
    return '{} {}'.format(self.first, self.second)
Python: Setting the metaclass for all files in a folder