added param. default=None and only export "window"

In this version you can pass the padding value as an optional parameter. Maybe the parameter should be calles `padding_value` instead? I don't know. It also only exports the `window` function (and not `xrange`).