Comparison was string to object. Changed to compare objects.
	modified:   api/machine.py