import fileinput; it's commonly used
remove all ^O