Moved flatten_cursor to its own file, so that the __init__.py can work directly with the interface which extracts everything.