Tunisians are lovely people just like most people from all over the world but Tunisia isn't exactly one of the safest countries for solo female travelers, here are some of top precautions solo ladies should take when in Tunisia:
Consider joining a local tour group.
Stay around other women as much as possible- sit next to other women when using public transport
Cover up that way you can fit in with local women and the probability of you being harassed reduces.
Learn to use some local phrases such as
Harem Alek - it's Arabic for shame on you in case someone tries to get touchy