fix kdb import

make it work for plugins that require a parentKey name
fix export accordingly
[swig-python] fix examples after e0c07d

KeySet.__getitem__ throws KeyError if key is missing
(see https://docs.python.org/3/reference/datamodel.html#object.__getitem__)

This fixes #1
swig-lua+python: fix installation directory
swig-lua: fix swig 3 compatibility
swig-python: another bug introducted by e0c07d
swig-python: add support for python 2.7/legacy

In principle this is a big hack as it modifies the python class at
runtime. Since it's python legacy I hope it won't stay that long.

Note: Python 2 has no binary datatype so the API has changed a bit
adapt tests for yajl limitations

short time solution to make tests work
long term solution: Make plugin that rewrites directory
and parent key values to keys
some new todos + reformat to markdown
Merge branch 'master' of github.com:ElektraInitiative/libelektra
fix relation properties

to return false on null keys
add example for hierachy and iteration
Merge branch 'swig-merge' of https://github.com/manuelm/libelektra into manuelm-swig-merge
allow python-legacy to be used with swig 2.0.7
Merge pull request for python-legacy

https://github.com/ElektraInitiative/libelektra/pull/4

In principle this is a big hack as it modifies the python class at runtime. Since it's python legacy I hope it won't stay that long.

I was not able to let cmake compile both python + python-legacy in one step. I fear that's not possible at all as both modules use the FindPythonLibs cmake module which will only run once.

So the best way to force compilation of python-legacy is to run cmake with some extra defines. I think you'll need to define:

PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python2.7
PYTHON_INCLUDE_DIR:PATH=/usr/include/python2.7
PYTHON_LIBRARY:FILEPATH=/usr/lib64/libpython2.7.so (or /usr/lib/libpython2.7.so)