import requests


api_url = 'http://www.gitignore.io/api'


def generate(*targets, **kwargs):
    target = ','.join(targets)
    url = '{0}/{1}'.format(api_url, target)
    response = requests.get(url)

    # this contains the generated gitignore contents
    contents = response.text

@@ -257,18 +257,14 @@
     
-contents =
+return
  res

main script return the response text