Python Dictionary Length Function In Oracle