import os.path
import sys

# This bit of evil should inject third_party into the path for relative imports.
sys.path.append(os.path.dirname(__file__))

@@ -114,15 +114,18 @@
 ath.
-append(
+insert(1, 
 os.p

Insert third_party into the second slot of sys.path rather than the last slot