adds a debug flag to output debugging output while pyt runs, this should help me to figure out why certain input fails