def grouper(some_list, count=2):
    """
    splits a list into sublists

    given: [1, 2, 3, 4]
    returns: [[1, 2], [3, 4]]
    """
    return [some_list[i:i+count] for i in range(0, len(some_list), count)]