fork of Jakub Wilk's python-aalib