Python score sequence generator