Switch from macros to functions

The macros weren't doing us any good here. Also dropped stat printing in
general because it isn't useful or part of the Python API.