setup.py: detect whether to compile extensions with Cython or normally

logoutils: stub function returns NotImplemented rather than None