diff --git a/coolamqp/framing/compilation/content_property.py b/coolamqp/framing/compilation/content_property.py
index 53451df790beb7fed2ddbdbebb214963e749e1f4..447666eb114ee8181fa0952022c3e343ac444842 100644
--- a/coolamqp/framing/compilation/content_property.py
+++ b/coolamqp/framing/compilation/content_property.py
@@ -124,9 +124,11 @@ class ParticularContentTypeList(AMQPContentPropertyList):
 
     return u''.join(mod)
 
+import struct
 
 def compile_particular_content_property_list_class(zpf, fields):
     q = _compile_particular_content_property_list_class(zpf, fields)
-    loc = {}
+    import struct
+    loc = {'struct': struct}
     exec (q, globals(), loc)
     return loc['ParticularContentTypeList']
diff --git a/coolamqp/framing/frames.py b/coolamqp/framing/frames.py
index 0401e314eb5d51f763dc22980b5d6e01b87bf885..705ee8231f5a4b0b7d9c01fa44cb3e1d325dd703 100644
--- a/coolamqp/framing/frames.py
+++ b/coolamqp/framing/frames.py
@@ -5,7 +5,6 @@ Concrete frame definitions
 from __future__ import absolute_import, division, print_function
 
 import struct
-
 import six
 
 from coolamqp.framing.base import AMQPFrame