def change_str(name):
    """Remove spaces, commas, semicolons, periods, brackets from given string
    and replace them with an underscore."""

    changed = ''
    for i in range(len(name)):
        if name[i]=='{' or name[i]=='}' or name[i]=='.' or name[i]==':' \
                or name[i]==',' or name[i]==' ':
            changed += '_'
        elif name[i]=='\'':
            changed += ''
        else:
            changed += name[i]
    return changed