nl: join into a file path: path and string '%s.pot', where '%s' is replaced with self.domain converted into a string, substitute the result for pot_path.
code: pot_path = os . path . join ( path , '%s.pot' % str ( self . domain ) )