Quoting October Rust:" web MD- the doctor for the lazy, cheap, and stupid"
Also, people on here aren't going to sugarcoat a response for you. You may think it's rude but they are speaking the truth. Being on here gives you good perspective on other women's experiences. There are women on here who have had babies at 37wks who've had to watch their babies be rushed to NICU. It's a very scary thing and just not something to risk. If you can go to full term then wait cause there are people who would have given anything to get to 40wks.
The best thing you can do is walk around and see what happens. If baby is ready then you will go into labor but trying anything else just isn't smart until after you are 39wks and with consent from a doctor.
If you REALLY can't sleep I would suggest bringing it up to your doctor and see if he/she can give you something. But honestly the insomnia at the end of pregnancy is good preparation for the sleepless nights ahead, lol. I'm 33wks and already have bad insomnia. I get about 3hrs of sleep a night. Good Luck and hope everything works out for you.