Got rt console to work in gui with root.after() calls