title: Python - Require input from a print function
body: <p>I am testing a print function, where it looks as if the prompt is typing, defined as type()</p>
  
  <p>I would like to store raw input using the type function:</p>
  
  <pre><code>from time import sleep
  import sys
  from random import uniform
  
  def type(s):
      for c in s:
      sys.stdout.write('%s' % c)
      sys.stdout.flush()
      sleep(uniform(0, 0.3))
  
  name = raw_input(type("What is your name? "))
  type("Hello " + name +"\n")
  </code></pre>
  
  <p>This is the output of the code:</p>
  
  <blockquote>
    <p>What is your name? None</p>
  </blockquote>
  
  <p>Input is still allowed from the user, right after 'None', and the output will be correctly printed, without 'None'. Is there a way to circumvent this?</p>
  
  <p>In this prompt I would like to print everything using the type function.</p>