Fixed usage print
Backward compatibility with python 3.2 (because this is the standard in Ubuntu 12)
Fixed gcc "warning: unused variable ‘ok’ [-Wunused-variable]"