Have thumbnail_cleanup work in Python 2.6 too