def append_file(self, rfile):
    with open(rfile, 'w') as file:
        for p in self.ranks:
            file.write((((str(p.name) + ' ') + str(p.score)) + '\n'))
def append_file(self, rfile):
    with open(rfile, 'w') as file:
        for p in self.ranks:
            file.write((((str(p.name) + ' ') + str(p.score)) + '\n'))