Only build python 2 of brewer2mpl if in array

This commit fixes the previous build function that would run the python
2 branch regardless of whether it was present in the pkgname array.