Return <entities> from entities.append()
Return <entities> from entities.append()

Some refactoring was done in this method as well which was driven out through
writing its unit test.

jhogan/commonpy,jhogan/epiphany-py