code: def create_pipfile(self, python=None):
          
          from .vendor.pip_shims.shims import (
              ConfigOptionParser, make_option_group, index_group
          )
  
          config_parser = ConfigOptionParser(name=self.name)
          config_parser.add_option_group(make_option_group(index_group, config_parser))
          install = config_parser.option_groups[0]
          indexes = (
              " ".join(install.get_option("--extra-index-url").default)
              .lstrip("\n")
              .split("\n")
          )
          sources = [DEFAULT_SOURCE,]
          for i, index in enumerate(indexes):
              if not index:
                  continue
  
              source_name = "pip_index_{}".format(i)
              verify_ssl = index.startswith("https")
              sources.append(
                  {u"url": index, u"verify_ssl": verify_ssl, u"name": source_name}
              )
  
          data = {
              u"source": sources,
              # Default packages.
              u"packages": {},
              u"dev-packages": {},
          }
          # Default requires.
          required_python = python
          if not python:
              if self.virtualenv_location:
                  required_python = self.which("python", self.virtualenv_location)
              else:
                  required_python = self.which("python")
          version = python_version(required_python) or PIPENV_DEFAULT_PYTHON_VERSION
          if version and len(version) >= 3:
              data[u"requires"] = {"python_version": version[: len("2.7")]}
          self.write_toml(data)
docs: Creates the Pipfile, filled with juicy defaults.