readline prevents compatibility with Windows; pyreadline could be used as a drop-in replacement with a conditional import