Sciuridae says to OwO
def pastebin(data): if pastebin_dev_key != "none" and pastebin_user_key != "none": pastebin_vars = {'api_dev_key': pastebin_dev_key, 'api_option': 'paste', 'api_paste_code': data, 'api_user_key': pastebin_user_key, 'api_paste_name': "base64"} response = urllib.request.urlopen('http://pastebin.com/api/api_post.php', bytes(urllib.parse.urlencode(pastebin_vars),'utf-8')) url = response.read() return(str(url,'utf-8')) else: return("invalid pastebin key")