-Further python3 compatibility fixes (json)