XNAT in Python