pymode customizing adaption