Python 3 Fix from eliksir/Django-facebook.