A Python port of InPUT.