Contents:
a decorator to add keyword stdout, stderr to the function args if stdout, stderr is not None, redirect the stdout, stderr to the respective files.