Fix #1: make bytes_to_long() work with Python < 2.7.4