Added build support for Python3+ and Python2.6+