latest parsley works with python 3
refactors parsley code