Access GPIO on M2+ by Python

How to access(in/out) GPIO on Banan Pi M2+ by using Python. Any sample code available ?