python api for reading and manipulating APTs