title: kivy language not handling enums?
body: <p>I have a file with constants, like this:</p>
  
  <pre><code>from enum import Enum
  class Ear(Enum):
      LEFT = 0
      RIGHT = 1
  </code></pre>
  
  <p>Then I import it in a kv file like this:</p>
  
  <pre><code>#: import Ear vocelab.ark_const
  </code></pre>
  
  <p>And finally use it to set an ObjectProperty named "ear":</p>
  
  <pre><code>Audiogram:
      id: audiogram
      ear: Ear.LEFT
  </code></pre>
  
  <p>And then I get this error (well the traceback is very long, this is just a part of it):</p>
  
  <pre><code>kivy.lang.builder.BuilderException: Parser: File "C:\Users\Laci\Python\Projects\VoceLab\vocelab\vocelab.kv", line 224:
   ...
       222:                            Audiogram:
       223:                                id: audiogram
   &gt;&gt;  224:                                ear: Ear.LEFT
       225:                    TabbedPanelItem:
       226:                        id: tp_devices
   ...
   BuilderException: Parser: File "C:\Users\Laci\Python\Projects\VoceLab\vocelab\vocelab.kv", line 224:
   ...
       222:                            Audiogram:
       223:                                id: audiogram
   &gt;&gt;  224:                                ear: Ear.LEFT
       225:                    TabbedPanelItem:
       226:                        id: tp_devices
   ...
   AttributeError: 'module' object has no attribute 'LEFT'
  </code></pre>
  
  <p>I think this may be a bug, or at least the error message if wrong. It says "AttributeError: 'module' object has no attribute 'LEFT'" but "Ear" is not a module. I'm not sure about this but maybe kivy tries to get the "LEFT" attribute of the ark_consts module, instead of the enum?</p>