Fix parsing of invalid syntaxt Python exceptions

I am not sure how to fill function_name. InvalidSyntax exception have only one frame and that frame does not have file. The patch set special_function to true and leaves function_name empty (NULL), but exporting to JSON adds 'module' to function_name.
Perhaps it's due to python2 vs. python3?