Port to Python 3.2+
Switch to st_mtime_ns when available
Replace pycrypto with ctype wrapped libcrypto