Add more slug docs to example, move last_updated up
avoid one-line for-loops and if-statements
fix writing a binary file in Python 3