Please go see your doctor or gynae before taking anything, since at 37 weeks even something that seems minor needs proper medical clearance first. Medication safety in pregnancy really depends on your individual situation, so your doctor is the best person to weigh the risks and benefits and advise you properly.