Refactoring python input handler