class MySingleton(object):

    def __init__(self, source):
        self.my_reader = DictReader(source)
if __name__ == '__main__':
    singleton = MySingleton(sourcefile)
Python How to Initialize Reader Object in Class Definition