Version working in both python 2 and 3.
Added gitignore.