force_unicode -> force_text for python3
Fix debug flag import error