pep-8
Fixed bug in duration parsing.
Added missing parameter.
Fixed parse_duration.
Handle possible lack of extensions
Fixed tests