Feature/support python3

All tests and samples run with python3 now.
It fails at Python 3.4.1. Open the template file in binary mode (use second arg 'rb') and then simply do f.read() which returns bytes instead of str.