[FIX] http.py: no traceback for SessionExpiredException

Rebase and close #3618
[FIX] Avoid endless loop when doing a return picking