Generate training data for Optical Character Recognition using Python and PIL