how to distinguish between a method and an attribute in python by name
<p>Sometimes, I find it hard to distinguish between a method and an attribute by it's name without appending parentheses.</p>

<p>For example:<br>
there're <code>keys()</code> method and <code>text</code> attribute in <code>xml.etree.ElementTree.Element</code> class.</p>

<p><code>text</code>:The text attribute can be used to hold additional data associated with the element. </p>

<p><code>keys()</code>:Returns the elements attribute names as a list.</p>

<hr>

<p>Is there some basic rules/conventions to make <code>text</code> an attribute, but <code>keys()</code> a method?</p>

<p>If I make <code>text()</code> a method, and <code>keys</code> an attribute. It still seems OK.</p>
