Python 3 + lookup by ID