I don't think there's any great mystery to writing female characters, so long as you talk to them. If you lived in a monastery and never met any women, maybe it would be difficult.
Every sentence has a truth waiting at the end of it and the writer learns how to know it when he finally gets there.
You can get through very serious and sometimes horrible and sometimes embarrassing and very awkward situations with humor. It gives us a way out.