fix python shebang
removed redefined ENABLE_DEBUG
remove static flag, it's not static
add missing include
fixed printf patterns