Combine vim modelines and Python encoding declarations

Ref #314