Fixed code style
Added indexes to python bindings