A primer on speeding up Python code, from tips for speeding up serial scripts to parallelization on multiple cores, multiple nodes when using an HPC system, and finally some simple direct GPU programming. This course does not involve machine learning directly but may be useful as background information for ML users, as well as for general Python programming.