Write a dictionary of string keys to a file

def write_dict_to_file(file_path, obj):
    """
    Write a dictionary of string keys to a file
    """
    lines = []
    for key, value in obj.items():
        lines.append(key + ':' + repr(value) + '\n')

    with open(file_path, 'w+') as file:
        file.writelines(lines)

    return None