Fixed: Implicit cast warning in xml reader
New: `print` renamed to `printElement` and reworked

This commit changes the `print` method to `printElement`, since naming a method `print` causes problems in Python.

Unit tests and Python bindings have been expanded and updated with the new method names.