Make stream handler Python 2.5 compatible

The stream parameter used to be called "strm" in Python 2.5 and was
renamed to "stream" past 2.5 for unclear reasons.