Exposed a partially working set_term method

Supports str and int terms right now. Likely breaks spectacularly if
some other object is provided.