code: def nicepass(alpha=8, numeric=4):
      
      import string
      import random
      vowels = ['a', 'e', 'i', 'o', 'u']
      consonants = [a for a in string.ascii_lowercase if a not in vowels]
      digits = string.digits
  
      # utility functions
      def a_part(slen):
          ret = ''
          for i in range(slen):
              if i % 2 == 0:
                  randid = random.randint(0, 20)  # number of consonants
                  ret += consonants[randid]
              else:
                  randid = random.randint(0, 4)  # number of vowels
                  ret += vowels[randid]
          return ret
  
      def n_part(slen):
          ret = ''
          for i in range(slen):
              randid = random.randint(0, 9)  # number of digits
              ret += digits[randid]
          return ret
  
      ####
      fpl = alpha / 2
      if alpha % 2:
          fpl = int(alpha / 2) + 1
      lpl = alpha - fpl
  
      start = a_part(fpl)
      mid = n_part(numeric)
      end = a_part(lpl)
  
      return "%s%s%s" % (start, mid, end)
docs: returns a human-readble password (say rol86din instead of
      a difficult to remember K8Yn9muL )