var length data support for python

Apologies for the delay in submitting this again