Python dependency & compatiblity change

- Fixed small python code so it supports python 2.6+ and python 3.3+
- Added into the README that python is a dependency