python interface now can use native keyboard if possible.