Data analysis and experiment control with Python