[Python] Adding the ability to redirect firefox process output to file. Fixes iss...

Adding the ability to redirect firefox process output to file. Fixes issue 5609.