IBM1 in Python