get_classes now allows top-level apps.

Fixes #614