code: def pageSize(cls):
          
          try:
              try:
                  pageSize = win32.GetSystemInfo().dwPageSize
              except WindowsError:
                  pageSize = 0x1000
          except NameError:
              pageSize = 0x1000
          cls.pageSize = pageSize     # now this function won't be called again
          return pageSize
docs: Try to get the pageSize value on runtime.