Adding thread tasks to pyext (#44).