More Python and Bash tricks