Working with wiggle tracks in Python