Fix duplicate resource definition: python-twisted

Apparently some other modules in Havana use python-twisted,
which causes the graphite module to throw a duplicate resource
definition error.  This commit adds an if !defined to prevent
that from happening.

Closes-Bug: #1263007