This may be so hopelessly late as to be useless, but it could be that you're using Python version 2.2 to 2.7 where the division operation on integers is different
This StackOverflow link explains it a bit more, https://stackoverflow.com/questions/183853/what-is-the-difference-between-and-when-used-for-division
One solution I've seen has been to enable "hybrid sleep", where you can have it sleep for some period of time (30m) and afterward go to hibernate.
I still need to check in on it, but one of the biggest issues with sleep on Framework laptop is that the usb-c adapters (like HDMI) passively draw power. If you use 4 usb-c (or just leave it empty), you have better sleep experience.