Substitute ${..} later during YAML parsing.

Also ensure ensure that obj.yaml_src contains the non-substituted
string.

This fixes https://github.com/lisa-lab/pylearn2/issues/300
Use basestr instead of str in YAML parser
Merge pull request #595 from jbornschein/yaml-preproc

Substitute ${..} later during YAML parsing.