Make exported functions private again

I really don't remember why I made all the exported functions public.
There is no need to call these from Go - only from Python, and
exporting allows that whilst keeping the functions private.