Restructure latex config
Clean up python config