fixes according to python3
use of json