def puts_err ( s = '' , newline = True , stream = STDERR ) : puts ( s , newline , stream )
how to get the std err and std output in python
Prints given string to stderr .
def puts_err(s='', newline=True, stream=STDERR):
    """Prints given string to stderr."""
    puts(s, newline, stream)