Fix phpserialize on python3, closes #23.