MAINT: Remove use of compiler module.

The ast module was added in Python 2.6 as a replacement for the compiler
module. As we no longer support Python versions < 2.6, all uses of the
compiler module can be removed.
Merge pull request #5177 from charris/do-not-use-compiler-module

MAINT: Remove use of compiler module.