def make_fixed_length(text, desired_len):
    """
    Takes a length of text and either cuts it down to
    size or adds a space buffer to the end of it.
    """
    if len(text) == desired_len:
        return text
    if len(text) > desired_len:
        return text[0:desired_len]
    if len(text) < desired_len:
        x = len(text)
        while x < desired_len:
            text = text + ' '
            x+=1
        return text