python. Better rest, classes api, fixed #197.