Update collecting.py

Hi Alan,

we've just started to publish code on GitHub. I hope we can provide more stuff in the near future.
Best,
cosmin