Code smell badge
Remove duplicate import
Don't overwrite `file` built-in
Reduce code smell
Simplify code
Silly maths error
Add metadata
Fix some formatting