def arch(): ''' Detect OS architecture. Returns an int: 32 or 64 ''' return 64 if maxsize > 2 ** 32 else 32