The platform module contains functions for querying various aspects of the underlying platform on which Python is running. Unless specifically noted, these functions are available with all versions of Python.
architecture([executable, [bits [, linkage]]])
Returns a tuple (bits, linkage) containing information about how Python was built, where bits is a string containing information about the word size (for example, '32bit' or '64bit') and linkage contains information about linking of the Python executable. The executable parameter specifies a path to the Python interpreter and is sys.executable by default. The bits and linkage parameters specify default values to be returned if no information is available.
dist([distname [, version