SG: This whole if-block is indented 4 spaces and it should only be indented 2 spaces. http://pyne.io/devsguide/style_guide.html#formatting