fall back to input BIF if raw_input not supported

Partial prep for Python 3 support (issue #15).