Evaluate python snippets in python