+KERNEL/PROC

Tweaks in python implementation
Solved some TODO
Solved some logic parity problems
+DOCS
Merge from upstream