Migrate to Python 3.
Remove more legacy code. Add RTL option.
Merge branch 'master' into gh-pages
update from master.