py-cpuinfo retrieves CPU information with pure Python. It works with Python 2 and 3, and does not require any compilation.