A Python implementation of the C++ hapbin code for calculating EHH and iHS values in haplotype scans