replaced eval with a more safe getattr
Merge pull request #27 from jenner/eval_fix

replaced eval with a more safe getattr