[FIX] fix in algorithm fortnight
[IMP] PEP8 and validations