from sage.categories.category import category_sample sorted(category_sample(), key=str)
http://www.sagemath.org/doc/reference/categories/sage/categories/category.html
the samples is .example()? some categories like Semigroups().example(), groups().example() can run normal.....