Using dict gives O(1) child access instead of O(num_children) with list implementation
This gives build time boost and makes code look prettier.
Also added some spacing according to PEPs
Thank you very much for the contribution! I just recently updated the test suite a bit and added a CI setup. Would you please rebase on latest master branch so that the tests are run?
Using dict gives O(1) child access instead of O(num_children) with list implementation This gives build time boost and makes code look prettier. Also added some spacing according to PEPs