def parse_time(timestring, type_of=int):

    """
    Given a time string will return a tuple of ints,
    i.e. "09:44" returns [9, 44] with the default args,
    you can pass any function to the type argument.

    :param timestring: String such as '09:44'
    :param type_of: A type which the split string should be converted to,
                    suitable types are: :class:`int`, :class:`str` and
                    :class:`float`.
    """

    return map(type_of, timestring.split(":"))