Python code for common analyses and generating standard figures