Move all generated sections to the end of files.
Fix missing spaces.
Add `sys/socket`.
Add Python extras to gitignore.