Reduced Basis Collocation method in Python