Modified to use isprint to get data and then pickle it.