Added object oriented python script
Updated both versions to latest with new headers.