An open-source machine learning framework for global analyses of parton distributions