use os.uname call instead of exec uname command
make environment variables available both for C and Python