python3 removes json encoding keyword arg from dumps func