DO NOT PULL REQUEST WITHOUT TEST FIRST, please, fixing wrong declaration of retDict = {}