Added a simple square wave analyzer

Added a square wave analyzer and an associated Python script that uses
it. The PCM analyzer is still busted at the moment.