Added clean_file functionality
It is possible to write addons that can contain code that runs differently based om the verison of blender you are on. This is against the guidelines. Clean_file strips the code back to be only the code used for the version of blender under test.