add app_directories.py template loader, bug fix for tenant models unicode