Feature/support python3

All tests and samples run with python3 now.
Use single quote for consistency ('rb').