Nothing in this Part shall apply to any ship of war or any ship for the time being used by the Government of any country for purposes other than commercial purposes.