```python if issue_mdi.ok(): issue_mdi('G0 x0 y0 z0') else: print "Error issuing MDI:", issue_mdi.ok.msg # Print the reason it was not OK ```