Python library for the Sword project