handle with tuple & list in django

since phpserializer serialize tuple & list into dict, so it might get error when use other authentication system, like https://github.com/pennersr/django-allauth .  I wrapped the session_dict, hope this bridge could be more compatible with different session format.