Borderlayout Javatpoint Python Function