The subprocess has the following __name__: __parents_main__ and not __main__ any more. This is why your process does not loop when you are testign the __name__ variable.
For more information on this have a look to the chapter Safe importing of main module