make apps.base py2.5 compatible