title: Python function (lettuce step) always retrurn True
body: <p>I am working with selenium and lettuce for testing in python.
  I have this step for counting employee table rows </p>
  
  <pre><code>@step('I count employee table rows')
  def i_count_emp_table_rows(step):
      try:
          elems = world.driver.find_elements_by_xpath(".//*[@id='myTable']/tr")
          sum = 0
          for item in elems:
              sum= sum+1
          return sum
      except Exception, e:
          print e
          return None
  </code></pre>
  
  <p>And I have another step, In this step, I want to save the number of employees in employee table (using above step) before I go to next page after clicking Add Employee Button.  </p>
  
  <pre><code>@step('I click the Add Employee Button')
  def i_click_the_add_employee_button(step):
      world.prev_no_of_emp = step.given('I count employee table rows')
      print "Right Now total rows in table: " + str(world.pre_no_of_emp)
      done, world.driver = click_page_element(admin_add_employee_button_xpath, world.driver, wait=10) 
  </code></pre>
  
  <p>But the funny thing is that I always get "True" instead of a list count. I even used <strong><em>len()</em></strong> but no success<br>
  Here is the result of print statement.
  <br> 
  <strong>Right Now total rows in table: True</strong></p>