Just created a Python API for reading and modifying (even if all the modify features are not complete yet) TaskPaper files. The (so far very small) project is hosted at my GitHub page here. The file you are looking for if you want to play with the API can be found here.