code: def append_position(path, position, separator=''):
      
      filename, extension = os.path.splitext(path)
      return ''.join([filename, separator, str(position), extension])
docs: Concatenate a path and a position,
      between the filename and the extension.