def to12hrs(militarytime, pad=False):
    """Convert simple military time string to AM/PM format
    Example:
        input: 2130
        output: 9:30 pm
    """
    hours = int(militarytime[0:2])
    minutes = int(militarytime[2:])
    meridiem = ''
    formater = '%d:%02d %s'

    if hours > 12:
        hours = hours - 12
        meridiem = 'pm'
    elif hours < 12:
        meridiem = 'am'

    if pad:
        formater = '%02d:%02d %s'

    return formater % (hours, minutes, meridiem)