def is_valid_note(note):
    """Return True if note is in a recognised format. False if not."""
    if not _note_dict.has_key(note[0]):
        return False
    for post in note[1:]:
        if post != 'b' and post != '#':
            return False
    return True
Return True if note is in a recognised format. False if not.