make is_python return a valid boolean when REPL is being used, resolves #147