fix pep8, not used json import
if cube is empty set pdict to {}, ref #204