import platform
platform.python_implementation()
From the documentation:
platform.python_implementation ()
Returns a string identifying the Python implementation.
Possible return values are: 'CPython', 'IronPython', 'Jython', 'PyPy'.
http://docs.python.org/2/library/platform.html
source
share