Minor changes to make recipe Python 3.x compatible.

In template, try to import Python 3.x `configparser` and if that fails fallback to Python 2.x `ConfigParser`.