Fix python dict