title: Changing the class type of a class after inserted data
body: <p>I want to create a class in python, which should work like this:</p>
  
  <ol>
  <li><p>Data assigned, maybe bound to a variable (eg <code>a = exampleclass(data)</code> or just <code>exampleclass(data)</code>)</p></li>
  <li><p>Upon being inserted data, it should automatically determine some properties of the data, and if some certain properties are fullfilled, it will automatically...</p></li>
  <li><p>... change class to another class</p></li>
  </ol>
  
  <p>The part 3 is the part that i have problem with. How do i really change the class inside of the class? for example:</p>
  
  <p>If I have two classes, one is <code>Small_Numbers</code>, and the other is <code>Big_numbers</code>; now I want any <code>small_number</code> smaller than 1000 to be transferred into a <code>Big_number</code> and vice versa, testcode:</p>
  
  <pre><code>a = Small_number(50)
  type(a) # should return Small_number.
  b = Small_number(234234)
  type(b) # should return Big_number.
  c = Big_number(2)
  type(c) # should return Small_number.
  </code></pre>
  
  <p>Is this possible to do?</p>