Extending the python music cognition toolkit with a rhythm parser