Update multifactorial.py