Add __contains__ to machine objects. closes #131