fix syntax error…
fix naming…
added an explicit requirement for hashlib if python version is lower than 2.5
simplified special windows code.