[graphspell][py] dawg: API modifications + add function to get dictionary as JSON