make is_directory for events a class attribute
remove legacy tests
cosmetics
raise AttributeError instead of ImportError on missing library functions