convert Finglish(or whatever you'd like to call) to Persian.
    gets and returns string.

def convert(self, text):
    """
    convert Finglish(or whatever you'd like to call) to Persian.
    gets and returns string.
    """

    url = self.API_URL
    encoding = self.ENCODING
    headers = self.HEADERS

    data = urlencode({
      'farsi': str(text)
      }).encode(encoding)

    request = Request(url=url,data=data,headers=headers)

    response = urlopen(request)

    result = response.read()

    response_encoding = response.headers['Content-Type']
    response_encoding = response_encoding[response_encoding.find('=')+1:]
    result = result.decode(response_encoding)

    # a simple fix
    result = result.replace('\ufeff','')[:-1]

    return result