checkpoint on Python port