Python bindings for SigmaPi Layer + some bugfixes

Nothing special.