Refactor to keep results in dict
Return results in same order as param
Fix compatibility with Python 2
Merge pull request #28 from educreations/sorted-results

Return from_ids results in same order as param