Design page object to reuse same function with iOS and Android

I’m currently using page objects in my Appium and Python project to run the tests only on the iOS platform. Now I need to implement the same tests for Android (the app is the same).

I know the locators are different for each platform, but the functions I created I can use for both platforms.

In java the @iOSXCUITFindBy and @AndroidFindBy annotations make design easier for this purpose, but so far I haven’t found anything similar to use with Appium and Python.

What strategy can I use to reuse the same functions for both platforms (Android and iOS)?