Use sys.platform rather than platform.platform(), as joerick RTFM for me :)
Use sys.platform rather than platform.platform(), as joerick RTFM for me :)

joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument,joerick/pyinstrument