This link should help you understand the process a little better in terms of what to expect when:
http://www.ballpython.ca/gallery/breeding.html
It lists laying inverted as something that happens before ovulation. However, I have also seen members here post pics of females that were close to laying that were also laying inverted.