Update required readline version (weird iPython wrapping bugs)
Add segment detection