python: return dictionary without value in case of no blockjob