title: How to copy a class?
body: <p><code>deepcopy</code> from <code>copy</code> does not copy a class:</p>
  
  <pre><code>&gt;&gt;&gt; class A(object):
  &gt;&gt;&gt;     ARG = 1
  
  &gt;&gt;&gt; B = deepcopy(A)
  
  &gt;&gt;&gt; A().ARG
  &gt;&gt;&gt; 1
  
  &gt;&gt;&gt; B().ARG
  &gt;&gt;&gt; 1
  
  &gt;&gt;&gt; A.ARG = 2
  
  &gt;&gt;&gt; B().ARG
  &gt;&gt;&gt; 2
  </code></pre>
  
  <p>Is it only way?</p>
  
  <pre><code>B(A):
      pass
  </code></pre>