Moved Py_Initialize and Py_Finalize to start and end of entire program as these should not be called more than once in the program. This fixes regular crashes for Python Scripts, especially when importing numpy etc... as modules cannot be unloaded and therefore cause issues when reloaded