import asyncio
import requests

def do_request(url, num_connections):
	responses = []
	for i in range(num_connections):
		responses.append(requests.get(url))
	return responses

@asyncio.coroutine
def run_requests(url, num_requests):
	loop = asyncio.get_event_loop()
	futures = []
	responses = []
	for i in range(num_requests):
		futures.append(loop.run_in_executor(None, do_request, url, num_requests))
	for i in range(num_requests):
		response = yield from futures[i]
		responses.append(response)
	return responses



import aiohttp

@asyncio.coroutine
def run_requests_async(url, num_requests):
	response = yield from aiohttp.request('GET', url)
	assert response.status == 200
	return (yield from response.read())

class Requestor(object):
	"""
	Main class to generate requests.
	"""
	def __init__(self, url, number_of_requests=1, *args, **kwargs):
		"""
		"""
		self.url= url
		self.number_of_requests = number_of_requests

	def start_requests(self):
		loop = asyncio.get_event_loop()
		results = loop.run_until_complete(run_requests(self.url, self.number_of_requests))
		#content = asyncio.get_event_loop().run_until_complete(
		#run_requests_async(self.url, self.num_requests))
		#print(content)
		print(results)

@@ -25,16 +25,17 @@
 quests%0A%0A
+%0A
 def do_r
@@ -60,25 +60,28 @@
 nnections):%0A
-%09
+    
 responses = 
@@ -75,33 +75,36 @@
  responses = %5B%5D%0A
-%09
+    
 for i in range(n
@@ -116,26 +116,32 @@
 nnections):%0A
-%09%09
+        
 responses.ap
@@ -164,17 +164,20 @@
 t(url))%0A
-%09
+    
 return r
@@ -186,16 +186,17 @@
 ponses%0A%0A
+%0A
 @asyncio
@@ -243,17 +243,20 @@
 uests):%0A
-%09
+    
 loop = a
@@ -279,17 +279,20 @@
 _loop()%0A
-%09
+    
 futures 
@@ -296,17 +296,20 @@
 es = %5B%5D%0A
-%09
+    
 response
@@ -315,17 +315,20 @@
 es = %5B%5D%0A
-%09
+    
 for i in
@@ -349,18 +349,24 @@
 uests):%0A
-%09%09
+        
 futures.
@@ -372,16 +372,29 @@
 .append(
+%0A            
 loop.run
@@ -406,16 +406,33 @@
 xecutor(
+%0A                
 None, do
@@ -458,20 +458,49 @@
 requests
-))%0A%09
+%0A            )%0A        )%0A        
 for i in
@@ -521,18 +521,28 @@
 uests):%0A
-%09%09
+            
 response
@@ -566,18 +566,28 @@
 ures%5Bi%5D%0A
-%09%09
+            
 response
@@ -609,225 +609,29 @@
 se)%0A
-%09return responses%0A%0A%0A%0Aimport aiohttp%0A%0A@asyncio.coroutine%0Adef run_requests_async(url, num_requests):%0A%09response = yield from aiohttp.request('GET', url)%0A%09assert response.status == 200%0A%09return (yield from response.read())
+    return responses%0A
 %0A%0Acl
@@ -653,22 +653,28 @@
 bject):%0A
-%09%22%22%22%0A%09
+    %22%22%22%0A    
 Main cla
@@ -698,22 +698,28 @@
 quests.%0A
-%09%22%22%22%0A%09
+    %22%22%22%0A    
 def __in
@@ -778,30 +778,48 @@
 s):%0A
-%09%09%22%22%22%0A%09%09%22%22%22%0A%09%09
+        %22%22%22%0A        %22%22%22%0A        
 self.url
 = ur
@@ -818,16 +818,23 @@
 .url
+ 
 = url%0A
-%09%09
+        
 self
@@ -875,17 +875,20 @@
 quests%0A%0A
-%09
+    
 def star
@@ -905,18 +905,24 @@
 (self):%0A
-%09%09
+        
 loop = a
@@ -945,18 +945,24 @@
 _loop()%0A
-%09%09
+        
 results 
@@ -991,187 +991,117 @@
 ete(
-run_requests(self.url, self.number_of_requests))%0A%09%09#content = asyncio.get_event_loop().run_until_complete(%0A%09%09#run_requests_async(self.url, self.num_requests))%0A%09%09#print(content)%0A%09%09
+%0A            run_requests(%0A                self.url, self.number_of_requests%0A            )%0A        )%0A        
 prin

Fix pep8