rename python api module
split python api (api, example), correct logging
improve exception handling in python api