jsonalchemy: import and PEP8 fixes

Co-authored-by: Esteban J. G. Gabancho <esteban.gabancho@gmail.com>
Signed-off-by: Adrian-Tudor Panescu <adrian.tudor.panescu@cern.ch>