Got write_forward_declares working and generating a nice pretty printed list of classes and namespaces.