Use inspect to detect class.

https://github.com/lepture/mistune/commit/3af9c0b2763afe91addd69e483bac6e771815995
Add rtd command in Makefile