* fix python's initContext()
* fix python buffer indexing
python: some minor simplifications