Another contribution

Tested with python2 and python3 on a manjaro live cd, works fine.