accept strings as well, not just filehandles

The etree.parse() call was already able to handle a str object instead of a
filehandle, just the logging call expected a string, this is fixed so the
ImarisXML object can now be created from both types.

The test script is adjusted accordingly to cover both cases.
PEP8 and Pylint changes, TODOs