Get walltime of a reserved job from the specifications in the input file using python?

To get the walltime