mark: tidying up
mark: putting some logging to try and figure out why it takes so long
mark: adding a python version which actually completes unlike the ruby one