add -lreadline to fix linking with Python library