On Fri, 22 Sep 2017, Petrus Hyvönen wrote:

The proper fix is to use rpartition('.')[0], trying it now..
Thank you for the bug report !

Andi..