code: def mlst(databasepath, genera=('Escherichia', 'Vibrio', 'Campylobacter', 'Listeria',
                                     'Bacillus', 'Staphylococcus', 'Salmonella')):
          
          logging.info('Downloading MLST databases')
          for genus in genera:
              # Create an object to pass to the get_mlst script
              args = MetadataObject()
              # Populate the object with the necessary attributes
              args.genus = genus
              args.repository_url = 'http://pubmlst.org/data/dbases.xml'
              args.force_scheme_name = False
              args.path = os.path.join(databasepath, 'MLST', genus)
              # Create the name of the file to be used to determine if the database download and setup was successful
              completefile = os.path.join(args.path, 'complete')
              # Only download the files if the download was not previously successful
              if not os.path.isfile(completefile):
                  # Run the download
                  get_mlst.main(args)
                  # Create and populate the complete.txt file
                  with open(completefile, 'w') as complete:
                      complete.write('\n'.join(glob(os.path.join(args.path, '*'))))
docs: Download the necessary up-to-date MLST profiles and alleles
          :param databasepath: path to use to save the database
          :param genera: default genera for which alleles and profiles should be downloaded