Fixes minor issues with volume attachments

* Fixed serialization/deserialization of attachments
* Minor pep8 issues
* This whole set of functional is pending refactor by Jose,
  agreed to only make whatever modifications were necessary

Change-Id: I63632af2b482c75ef8fed6222c30e0e010692727
Merge "Fixes minor issues with volume attachments"