old_contents: import random
  class die_bag():#Class for rolling die/dices
  	
  	def __init__(self):
  		self.data = []
  	
  	
  	def die(self, x, y = 1):#Roll a die and returns result
  		result = []
  		for i in range(y):
  			result.append(random.randint(1, x))
  		return result
  		print result 
  
  	
  	
  
  	def take_input_die(self):#Take input from user 
  	
  		eyes = int(raw_input('Number of eyes? '))
  		times = int(raw_input('Number of times? '))
  		
  		#Call die
  		dieRoll = die_bag.die(self, eyes, times)
  		print dieRoll
  
  d_class = die_bag()#Create a instance of die_bag
  
  die_bag.take_input_die(d_class)#Call take_input_die
  
  #Why does this not work?
  die_bag.die(d_class, 20, 1)#Call die with parameters
new_contents: import random
  
  """In this module, die or dices are rolled"""
  
  def die(x, y = 1):
      """Function for rolling a die or several dice,
      returns an array with results of dice rolls.
      Parameter x is number of eyes on a die.
      Parameter y = 1 is the times to a die is rolled.
      """
      
      result = []
      for i in range(y):
          result.append(random.randint(1, x))
      return result
subject: Remove test functions and, clean code in preperation for posting a pull request