now that Pelican supports py3k, you should use six.string_types instead, see: http://docs.getpelican.com/en/latest/contribute.html#python3-support