Adds python 2.7 support. needs testing still with python 2.6