call the method sys.stderr.write with an argument string "fork #1 failed: (%d) %s\n", formated with e.errno and e.strerror.
sys . stderr . write ( "fork #1 failed: (%d) %s\n" % ( e . errno , e . strerror ) )