Better Python script support; update samples.json

Better Python shebang detection.