This MR enables py37 builds everywhere.
It also improves the syntax of CI files to use the new extends keyword instead of YAML templates.
extends