Actually, REST endpoints don’t need any language requirements while getting access from those(language independent). We can call a Java REST endpoint from Python or NodeJs and even we can call it from anywhere.
OpenMRS has a strong REST implementation based based on Java. You can get it from here,
OpenMRS may have a python REST based backend in the future . Hope your idea will be paid off.