Medical image processing in Python