title: Python 3.5 / Pastebin "Bad API request, invalid api_option"
body: <p>I'm working on a twitch irc bot and one of the components I wanted to have available was the ability for the bot to save quotes to a pastebin paste on close, and then retrieve the same quotes on start up.</p>
  
  <p>I've started with the saving part, and have hit a road block where I can't seem to get a valid post, and I can't figure out a method.</p>
  
  <pre><code>#!/usr/bin/env python3
  
  import urllib.parse
  import urllib.request
  
  # --------------------------------------------- Pastebin Requisites --------------------------------------------------
  
  pastebin_key = 'my pastebin key'  # developer api key, required. GET: http://pastebin.com/api
  pastebin_password = 'password'  # password for pastebin_username
  pastebin_postexp = 'N'  # N = never expire
  pastebin_private = 0  # 0 = Public 1 = unlisted 2 = Private
  pastebin_url = 'http://pastebin.com/api/api_post.php'
  pastebin_username = 'username'  # user corresponding with key
  
  
  # --------------------------------------------- Value clean up --------------------------------------------------
  
  pastebin_password = urllib.parse.quote(pastebin_password, safe='/')
  pastebin_username = urllib.parse.quote(pastebin_username, safe='/')
  
  # --------------------------------------------- Pastebin Functions --------------------------------------------------
  
  def post(title, content):  # used for posting a new paste
      pastebin_vars = {'api_option': 'paste', 'api_user_key':     pastebin_username, 'api_paste_private': pastebin_private,
                   'api_paste_name': title, 'api_paste_expire_date': pastebin_postexp,  'api_dev_key': pastebin_key,
                   'api_user_password': pastebin_password, 'api_paste_code': content}
      try:
          str_to_paste = ', '.join("{!s}={!r}".format(key, val) for (key, val) in pastebin_vars.items())  # dict to str :D
          str_to_paste = str_to_paste.replace(":", "")  # remove :
          str_to_paste = str_to_paste.replace("'", "")  # remove '
          str_to_paste = str_to_paste.replace(")", "")  # remove )
          str_to_paste = str_to_paste.replace(", ", "&amp;")  # replace dividers with &amp;
          urllib.request.urlopen(pastebin_url, urllib.parse.urlencode(pastebin_vars)).read()
          print('did that work?')
      except:
          print("post submit failed :(")
          print(pastebin_url + "?" + str_to_paste)  # print the output for test
  
   post("test", "stuff")
  </code></pre>
  
  <p>I'm open to importing more libraries and stuff, not really sure what I'm doing wrong after working on this for two days straight :S</p>