Polish 'python/sortblockers'

Add exception handling and copyright info.