Replace extraneous eval with getattr

This changes the format of the configuration file slightly.