A Python implementation of numist's Composing Stick