with open(os.path.join(os.getcwd(), self.args['<output_filename>'] + '.json'), \
                    'w') as f: