Update to Python 3. Use other data structure.