Rewrite map distiller to use beautifulsoup, so we don't have to worry about parsing macros any more