1. imporved sha implementation using sha1
2. removed lua scripts and used/passed reference of python methods instead
SS-2029