Fix python bytecode mime
Avoid some warning
add support for .patch files