Changed petrie

@adikeinan you can merge these and then push your changes to pybossa.