use pformat or even nicer output

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>