Install this module:
cpan -f Term::ReadLine::Perl
cpan -f Term::ReadKey
If you want use arrow keys in Python, use this:
pip install readline
Comments
    Install this module:
cpan -f Term::ReadLine::Perl
cpan -f Term::ReadKey
If you want use arrow keys in Python, use this:
pip install readline