fix for json import on newer python versions