update to work with Python-2.7 and iBooks-3.2