Another massive refactor (sessions.py)

LIBRESULLEY RISE!
Add helpers

Add helpers, with a single helper for now that gets the max UDP packet
size in a platform-agnostic way.