Made doctests in basic Python section pass on Python 3.4