API: Remove set_printoptions/reset_printoptions (:issue:3046)

closes #3046