1.transplant scorefunct*.m to scorefuntion.py