'Distribute nodes evenly over servers'

@staticmethod
def bin(nodes, servers):

    nlen = len(nodes)
    slen = len(servers)
    quotient = int((nlen / slen))
    binsizes = {server: quotient for server in servers}
    remainder = (nlen % slen)
    for server in servers[0:remainder]:
        binsizes[server] += 1
    tickets = sum([(binsizes[server] * [server]) for server in servers], [])
    return {node: ticket for (node, ticket) in zip(nodes, tickets)}
