add exception in allcaps for PIL module