API cleanup: add Ckt.write_spice(), remove module level functions.