Slight tweak on _print
Simplified _dup
Merge pull request #394 from hintjens/master

Tweaked _dup and _print