Fix default extension for print_dot_graph
Change tuple to more readable namedtuple and add checks for functions that take Args