added ori C code
Added stuart python translation