Merge pull request #47 from farin/master

select_related feature, result cache +  few updates to have more Pythonic code