Conditionally import pyreadline