behave: reporters: junit: added workaround for older pythons