Remove "main" section from __init__.py
Port over split_pathset