def split_container(container, count):
    """
    Original source: https://gist.github.com/krischer/2c7b95beed642248487a
    Simple function splitting a container into equal length chunks.
    Order is not preserved but this is potentially an advantage depending on
    the use case.
    """
    return [container[_i::count] for _i in range(count)]