In the Moostodon sample, I generated code in the "sdk" folder but the clientNamespaceName was "MastodonClientLib". This prevented lazy imports from working as it was looking for modules in "mastodon_client_lib". Once I renamed the "sdk" folder to mastodon_client_lib the error went away.
We should probably make clientNamespaceName be unused for Python and rely only on the output folder name.