Pathway discovery and engineering of pharmaceuticals from medicinal plants