def add_suffix_before_extension(file_name_with_extension, prefix):
    """ Adds provided suffix before extension to file name """
    file_name, extension = file_name_with_extension.split('.')
    return "%s_%s.%s" % (file_name, prefix, extension)