code: def make_path(inpath):
      
      if not os.path.isfile(inpath):
          try:
              os.makedirs(inpath)
          except FileExistsError:
              pass
      else:
          raise OSError
docs: from: http://stackoverflow.com/questions/273192/check-if-a-directory-exists-and-create-it-if-necessary \
      does what is indicated by the URL
      :param inpath: string of the supplied path