pythonPackages: fix graphite_web, make it usable

This enables nixos module to work. I have also pushed some commits upstream, so in future we won't have to make those patches.