python: Add hash and comparison wrapping
SConstruct: Make module explicitly depend on library

scons seems to miss this dependency on Mac for some reason.