machine learning invoice processing python. The Python + Nan