Fix #1. Supporting python3