[WIP] extracting learning rates to learning_rates.pxd and learning_rates.pyx

This pull request is for #3647