Collective Matrix Factorization program coded by Python