Optimising for Larger Structures in Python