This replaces uiLayout aligment API with uiLayout methods, following uiLayout refactors and the Python API naming. Also this converts the layout aligment enum to a fixed enum class. Pull Request: https://projects.blender.org/blender/blender/pulls/140622