Pypestream interview question

How would you define an API?