Make _calculate_status_length compatible with Python 2.4