Pythonic implementation of mrb