Duplicate the mesh in edit mode and flip normals using python script

https://blender.stackexchange.com/questions/133626/duplicate-the-mesh-in-edit-mode-and-flip-normals-using-python-script