Fix potential security issue in form of lock file in /tmp
Fix misleading help message
Python3 support