Fix case explode on cases with attachments

@dannyroberts 
PEP8 convention is to sort imports alphabetically. Not sure how strict we are on that.