Removed `print()` from library code and 3to2 leftovers

In both cases the try-except block was only necessary for printing, thus removed as well.