Python-2.7 and Python-3 library snippets.