implemented standalone 'generate attribute' method

allows to generate attributes from plain XML subtrees.
this is vital to process string-based data retrieved from, e.g.,
network communication, allowing a decoupled processing without server interaction

we need to incorporate this better into the library class;
use synergy effects, by making the library implementation use this free method,
albeit keeping the library backend in a state.
generate attribute method is now available in python