Adding collector's Python code.