code: def download(branch=None, build=True, installdir="MalmoPlatform"):
      
  
      if branch is None:
          branch = malmo_version
  
      subprocess.check_call(["git", "clone", "-b", branch, "https://github.com/Microsoft/malmo.git", installdir])
  
      return setup(build=build, installdir=installdir)
docs: Download Malmo from github and build (by default) the Minecraft Mod.
         Example usage: import malmoenv.bootstrap; malmoenv.bootstrap.download()
      Args:
          branch: optional branch to clone. TODO Default is release version.
          build: build the Mod unless build arg is given as False.
          installdir: the install dir name. Defaults to MalmoPlatform.
      Returns:
          The path for the Malmo Minecraft mod.