Remove deprecated context and print functions, and fix notice: created e...

...mpty object