LMS in Python/Django/Ruby/Rails/PHP
Moodle seems the only more or less usable open source LMS out there, although it's far from well written IMO. There are good payed LMS like Canvas. I don't think what you are looking for exists at this moment!
I am looking for an alternative to Moodle.
I searched and found pinax-lms-demo, which was Django-based;
and Astra which was Rails-based, but both were empty repo...  
I need a LMS which has the following functions:  

create class  
Assign faculty  
Upload materials  
Take quiz  
forum  
scorm  
chat  

I spent more than a month using Moodle and being a developer I felt I should not use it...