Fixed a bug in the client API get_output_tasks()

Fixed a bug in the client API where get_output_tasks() was returning input tasks instead.