Adds check to raise errors when PYDATA variables are undefined.
Adds check to raise errors when PYDATA variables are undefined.

pbanaszkiewicz/amy,vahtras/amy,swcarpentry/amy,vahtras/amy,vahtras/amy,swcarpentry/amy,pbanaszkiewicz/amy,swcarpentry/amy,pbanaszkiewicz/amy