Making the code to work with the new PyBossa