not using 'or' operator - thanks @cyli

since it does not allow 0 value
better docstring - thanks @lvh

since it makes replace args clearer