with open('data.csv', 'a', newline='') as fp:
    for player in self.players:
        a = csv.writer(fp, delimiter=',')
data = [[player.name, player.penalty(), player.score()]]
Python append to csv file without whiteline