title: time.sleep() function is apparently a cause of invalid syntax
body: <p>This is meant to be a program for a ticket vendor in Python.
  It was working fine until I added in the <code>time.sleep</code> functions.
  Here is my code:</p>
  
  <pre><code>    import time
      spaces = 61
      def init():
          global spaces
          if spaces &gt; 1:
              print("Welcome to OCR's car park!")
              print("The number of spaces remaining is "+ str(spaces-1) +".")
              print("What are the last three letters on your number plate?")
              numplate = input()
              if len(numplate) != 3:
                  print("These letters are invalid.")
                  time.sleep(1)
                  init()
              elif numplate.isalpha():
                  print("It's £3.45 for a ticket. Enter how much money you want to insert. Type 'cancel' to cancel.")
          confirm = input()
          if confirm == "cancel":
              print("Payment cancelled.")
              time.sleep(3)
              init()
          if int(confirm) &lt; 345:
              print("You don't have enough money.")
              time.sleep(1)
              init()
              print("£" +str(confirm)+ " inserted.")
              time.sleep(2)
          if float(confirm)&gt; 345:
              print("Taking change...")
              time.sleep(3)
              confirm = float(confirm)-345
              print("Change due: £" +str(len(confirm[0]))+ "." +str(len(confirm[1]))+str(len(confirm[2]))     
          time.sleep(1)
          print("Printing ticket. Please wait.")
          time.sleep(5)
          print("Thank you for choosing OCR's car park!")
          spaces -= 1
          print("")
          print("")
          print("|-----|")
          print("| "+str(numplate.upper())+"|")
          print("|-----|")
          print("")
          print("")
          init()
      else:
          print("These letters are invalid.")
          time.sleep(1)
          init()
  elif spaces &lt; 2:
      print("No More Spaces.")
      init()
  </code></pre>
  
  <p>Every time I run it, it displays a pop-up saying <code>'invalid syntax'</code> and it always points to the <code>time.sleep(1)</code> function.</p>