Python implementation of open-textbooks