code: def generate_password():
      
      if sys.version_info > (3, 6):
          import secrets  # pylint: disable=import-error
          alphabet = string.ascii_letters + string.digits
          password = ''.join(secrets.choice(alphabet) for i in range(20))
          special = ''.join(secrets.choice(string.punctuation) for i in range(3))
          return password + special
      else:
          raise ImportError("Generating passwords require python 3.6 or higher")
docs: Returns a 23 character random string, with 3 special characters at the end