py3 and distribute

Added support for python 3 in addition to python 2.7.
Added distribute support for easier packaging.